package com.fc.v2.model.auto;

import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.date.DateUtil;
import java.util.Date;

public class MybatisTest implements Serializable {
    private static final long serialVersionUID = 1L;

	
	@ApiModelProperty(value = "主键")
	private String id;
	
	@ApiModelProperty(value = "标题")
	private String titlex;
	
	@ApiModelProperty(value = "是与否")
	private Integer ifabc;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "创建时间")
	private Date reatetime;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	@ApiModelProperty(value = "修改时间")
	private Date asdtime;
	
	@ApiModelProperty(value = "副标题")
	private String fsv;
	
	@JsonProperty("id")
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id =  id;
	}
	@JsonProperty("titlex")
	public String getTitlex() {
		return titlex;
	}

	public void setTitlex(String titlex) {
		this.titlex =  titlex;
	}
	@JsonProperty("ifabc")
	public Integer getIfabc() {
		return ifabc;
	}

	public void setIfabc(Integer ifabc) {
		this.ifabc =  ifabc;
	}
	@JsonProperty("reatetime")
	public Date getReatetime() {
		return reatetime;
	}

	public void setReatetime(Date reatetime) {
		this.reatetime =  reatetime;
	}
	@JsonProperty("asdtime")
	public Date getAsdtime() {
		return asdtime;
	}

	public void setAsdtime(Date asdtime) {
		this.asdtime =  asdtime;
	}
	@JsonProperty("fsv")
	public String getFsv() {
		return fsv;
	}

	public void setFsv(String fsv) {
		this.fsv =  fsv;
	}


	public MybatisTest(String id,String titlex,Integer ifabc,Date reatetime,Date asdtime,String fsv) {
		
		this.id = id;
		
		this.titlex = titlex;
		
		this.ifabc = ifabc;
		
		this.reatetime = reatetime;
		
		this.asdtime = asdtime;
		
		this.fsv = fsv;
		
	}

	public MybatisTest() {
	    super();
	}

	public String dateToStringConvert(Date date) {
		if(date!=null) {
			return DateUtil.format(date, "yyyy-MM-dd HH:mm:ss");
		}
		return "";
	}
	

}